import cv2

img = cv2.imread('statue_small.jpg')
img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
athdMEAM = cv2.adaptiveThreshold(img_gray, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY, 5, 3)

athdGAUS = cv2.adaptiveThreshold(img_gray, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY, 5, 3)

cv2.imshow('src', img)
cv2.imshow('athdMEAM', athdMEAM)
cv2.imshow('athdGAUS', athdGAUS)
cv2.waitKey()
cv2.destroyAllWindows()
